<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
	<script src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
	<script src="__PUBLIC__/layer/layer.js"></script>
	
    <title>总账号首页</title>
	<button onclick='show()'>+++++++++++</button>
	<table border=1>
		<tr>
			<th>No.</th>
			<th>地区</th>
			<th>授权时间</th>
			<th>授权手机号</th>
			<th>授权人</th>
			<th>设置</th>
		</tr>
		<volist name="info" id="vo">
		<tr>
			<td>{$vo.u_id}</td>
			<td>{$vo.u_pro_id}{$vo.u_city_id}{$vo.u_area_id}</td>
			<td>{$vo.u_time}</td>
			<td>{$vo.u_phone}</td>
			<td>{$vo.u_name}</td>
			<td><a href='#'>修改</a></td>
		</tr>
		</volist>
	</table>
</head>
<script>
	function show(){
		layer.open({
		  type: 2,
		  title: 'tianjia',
		  shadeClose: false,
		  shade: 0.5,
		  area: ['380px', '380px'],
		  maxmin: true,
            closeBtn: 1,
		  content: "{:U('chengshi')}" //iframe的url
		 
		}); 
	}
	window.addEventListener('message', fromNav, false)
    function fromNav(event) {
      console.log(event.data.url)
      if (event.data.url.length && event.data.url.length > 1) {
        self.location = event.data.url
      }
    }
</script>